<ion-view view-title="新品公告" class="productdetail activityThree">
	<ion-nav-buttons side="right">
		<button class="button button-clear" on-tap="openModal_share()"><img src="./img/guilin/common/icon_share@2x.png" class="shareImg"/></button>
	</ion-nav-buttons>

	<ion-content class="bg">
		<!--描述：商品图片轮播-->
		<ion-slide-box delegate-handle="advs-handle" slide-interval="5000" show-pager="true" ng-if="!myURL">
			<ion-slide ng-repeat="img in detail.title_images">
				<img src="{{img.image}}" width="100%" />
			</ion-slide>
		</ion-slide-box>
		
		<!--描述：视频播放相关 第三方播放-->
		<iframe id="iframeVideo" src="{{myURL}}" width="100%" style="height: 9.0rem;" frameborder="0" allowfullscreen="" ng-if="myURL"></iframe>
			
		<div class="list actDetail" ng-if="detail">
			<li class="item redItem">
				<div class="priceDiv">
					<span class="fh">￥</span>{{detail.price||detail.mktprice|currency:''}}
				</div>
				<div class="applyDiv">
					<p class="orgPirce" ng-if="detail.price">{{detail.mktprice|currency:'￥'}}</p>
					<p class="applyNum">{{detail.count||0}}人已购</p>
				</div>
				<div class="timeDiv">
					<p class="text">{{act_time_name}}{{datas.formate_time[0]}}天</p>
					<span class="num">{{datas.formate_time[1]}}</span><span class="pot">:</span><span class="num">{{datas.formate_time[2]}}</span><span class="pot">:</span><span class="num">{{datas.formate_time[3]}}</span>
				</div>
			</li>
			<li class="item goodsNameDiv">
				{{detail.name}}
				<p class="spec">{{detail.spec_info}}</p>
			</li>
			
			<li class="item buyCountItem">
				<div class="left-zhang">
					<div class="add stable-bg" on-tap="goods_add()">+</div>
					<input type="number" ng-disabled="true" ng-model="input.goods_num" style="width: {{input.goods_num>10000?(input.goods_num+'').length*10:38}}px;"/>
					<div class="add" on-tap="goods_reduce()">-</div>
				</div>
				<div class="addPriceDiv">
					库存：{{detail.store}}件
				</div>
				<!--<div class="storeNumDiv" ng-if="activitType!='4'">
					库存：{{detail.store}}件
					<p class="maxBuy">最大可购买：{{detail.max_count}}</p>
				</div>-->
			</li>
			
			<li class="item ruleItem" on-tap="openModal_rule()">
				<img src="./img/guilin/other/icon_hdgz@2x.png" class="sjx"/>
				活动规则
				<img src="./img/guilin/common/icon_right@2x.png" class="jt"/>
			</li>
			
			<!--店铺信息-->
			<li class="item storeItem item-input" on-tap="onshow_first()">
				<img src="{{detail.image_place1.s_url}}" class="storeImg" />
				<div class="storeMiddle level">
					<p class="storeName">{{detail.store_name}}</p>
					<span class="storeKind">{{detail.store_kind}}</span>
					<div class="shop_grade grade{{detail.store_level}}" style="margin-left: -5px;"></div>
				</div>
				<div class="storeRight">
					<p ng-repeat="store_info in detail.store_info">
						{{store_info.name}}<span class="point">{{store_info.avg_point}}</span>
					</p>
				</div>
			</li>
			<li class="item pullItem">
				<img src="./img/guilin/common/icon_up@2x.png" />
				上拉查看图文详情
			</li>
		</div>

		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="3%"></ion-infinite-scroll>
	</ion-content>

	<div class="bar bar-footer" ng-if="detail">
		<div class="row">
			<div class="col" on-tap="onshow_first()">
				<img src="./img/guilin/other/idon_dp@2x.png" class="imgSize"/>
				<div class="titleText">店铺</div>
			</div>
			<div class="col" on-tap="openModal_customer()" ng-show="detail.flag_name!='转让'&&detail.flag_name!='租赁'">
				<img src="./img/guilin/other/icon_kefu@2x.png" class="imgSize"/>
				<div class="titleText">客服</div>
			</div>
			<div class="btn red" on-tap="submit()" ng-show="detail.invalid!=true&&detail.flag_name!='转让'&&detail.flag_name!='租赁'&&isshow==true">
				立即采购
			</div>
			<div class="bg-DDD btn" ng-show="detail.invalid!=true&&detail.flag_name!='转让'&&detail.flag_name!='租赁'&&isshow==false">{{btn_name}}</div>
		</div>
	</div>
	
</ion-view>